/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package eu.horyzont.systemyrozproszone.systemmagazynowy.serwer.entities;
import java.util.ArrayList;
import java.util.List;
/**
 *
 * @author Maciej
 */
public class Warehouse extends Entity {
    private String name;
    private final  List<Product> productList=new ArrayList<Product>(); //dobrze?
    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name=name;
    }
    public void addProduct(Product product){
        productList.add(product);
    }
    public void removeProduct(Product product){
        productList.remove(product);
    }
    public String productListToString(){ //może się przydać
       return productList.toString();
    }
}
